export default {
  height: 'auto',
  labelWidth: 130,
  calcHeight: 30,
  tip: false,
  searchShow: true,
  searchMenuSpan: 6,
  border: true,
  index: true,
  viewBtn: true,
  selection: true,
  dialogClickModal: false,
  column: [
    {
      label: "主键",
      prop: "id",
      type: "input",
      addDisplay: false,
      editDisplay: false,
      hide: true
    },
    // {
    //   label: "创建人",
    //   prop: "createUser",
    //   type: "input",
    //   dicUrl: "/api/blade-user/listAll",
    //   props: {
    //     label: "name",
    //     value: "id"
    //   },
    //   addDisplay: false,
    //   editDisplay: false,
    // },
    // {
    //   label: "创建时间",
    //   prop: "createTime",
    //   type: "input",
    //   addDisplay: false,
    //   editDisplay: false,
    // },
    // {
    //   label: "修改人",
    //   prop: "updateUser",
    //   type: "select",
    //   dicUrl: "/api/blade-user/listAll",
    //   props: {
    //     label: "name",
    //     value: "id"
    //   },
    //   addDisplay: false,
    //   editDisplay: false,
    // },
    // {
    //   label: "修改时间",
    //   prop: "updateTime",
    //   type: "input",
    //   addDisplay: false,
    //   editDisplay: false,
    // },
    {
      label: "赛事",
      prop: "matchId",
      type: "select",
      dicUrl: "/api/blade-match/match/listAll",
      search: true,
      props: {
        label: "name",
        value: "id"
      },
    },
    {
      label: "状态",
      prop: "status",
      type: "select",
      search: true,
      dicUrl: "/api/blade-system/dict-biz/dictionary?code=schedule_status",
      props: {
        label: "dictValue",
        value: "dictKey"
      },
      dataType: "number",
      slot: true,
      rules: [{
        required: true,
        message: "请选择状态",
        trigger: "change"
      }]
    },
    {
      label: "甲队",
      prop: "teamAId",
      type: "select",
      dicUrl: "/api/blade-team/team/listAll",
      props: {
        label: "name",
        value: "id"
      },
      slot: true,
      rules: [{
        required: true,
        message: "请选择队伍",
        trigger: "blur"
      }]
    },
    {
      label: "甲队得分",
      prop: "teamAScore",
      type: "input",
    },
    {
      label: "乙队",
      prop: "teamBId",
      type: "select",
      dicUrl: "/api/blade-team/team/listAll",
      props: {
        label: "name",
        value: "id"
      },
      slot: true,
      rules: [{
        required: true,
        message: "请选择队伍",
        trigger: "blur"
      }]
    },
    {
      label: "乙队得分",
      prop: "teamBScore",
      type: "input",
    },
    {
      label: "比赛时间",
      prop: "matchTime",
      type: "datetime",
      format: "yyyy-MM-dd HH:mm:ss",
      valueFormat: "yyyy-MM-dd HH:mm:ss",
    },
    {
      label: '启用竞猜',
      prop: 'isGuessEnabled',
      type: 'switch',
      value: 0,
      dicData: [
        { label: '禁用', value: 0 },
        { label: '启用', value: 1 }
      ]
    },
    {
      label: '甲队让分数',
      prop: 'teamAHandicap',
      type: 'number',
      value: 0,
      min: -300,
      max: 300,
      step: 1,
      span: 8,
      hide: true
    },
    {
      label: '甲队胜赔率',
      prop: 'teamAWinOdds',
      type: 'number',
      value: 1,
      min: 1,
      max: 20,
      step: 0.1,
      stepStrictly: true,
      span: 8,
      hide: true,
      tip: '为1则不能投注'
    },
    {
      label: '甲队败赔率',
      prop: 'teamALoseOdds',
      type: 'number',
      value: 1,
      min: 1,
      max: 30,
      step: 0.1,
      stepStrictly: true,
      span: 8,
      hide: true,
      tip: '为1则不能投注'
    },
    {
      label: '平赔率',
      prop: 'drawOdds',
      type: 'number',
      value: 1,
      min: 1,
      max: 30,
      step: 0.1,
      stepStrictly: true,
      span: 8,
      hide: true,
      tip: '为1则不能投注'
    },
    {
      label: '比分和单数赔率',
      prop: 'singularOdds',
      type: 'number',
      value: 1,
      min: 1,
      max: 30,
      step: 0.1,
      stepStrictly: true,
      span: 8,
      hide: true,
      tip: '为1则不能投注'
    },
    {
      label: '比分和双数赔率',
      prop: 'complexOdds',
      type: 'number',
      value: 1,
      min: 1,
      max: 30,
      step: 0.1,
      stepStrictly: true,
      span: 8,
      hide: true,
      tip: '为1则不能投注'
    }
  ]
}
